import request from '@/utils/request'

// 查询生产记录列表
export function listProdRecord(query) {
  return request({
    url: '/order/prodRecord/list',
    method: 'get',
    params: query
  })
}

// 查询生产记录详细
export function getProdRecord(recordId) {
  return request({
    url: '/order/prodRecord/' + recordId,
    method: 'get'
  })
}

// 新增生产记录
export function addProdRecord(data) {
  return request({
    url: '/order/prodRecord',
    method: 'post',
    data: data
  })
}

// 修改生产记录
export function updateProdRecord(data) {
  return request({
    url: '/order/prodRecord',
    method: 'put',
    data: data
  })
}

// 删除生产记录
export function delProdRecord(recordId) {
  return request({
    url: '/order/prodRecord/' + recordId,
    method: 'delete'
  })
}
